package com.ikas.ai.server.module.appraise.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ikas.ai.server.module.appraise.dao.AppraiseSceneResultDetailDAO;
import com.ikas.ai.server.module.appraise.model.AppraiseSceneResultDetail;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service("tAppraiseSceneResultDetailService")
public class AppraiseSceneResultDetailService extends ServiceImpl<AppraiseSceneResultDetailDAO, AppraiseSceneResultDetail> {


    @Resource
    private AppraiseSceneResultDetailDAO appraiseSceneResultDetailDAO;

    public List<AppraiseSceneResultDetail> listBySceneResultId(Long sceneResultId) {
        LambdaQueryWrapper<AppraiseSceneResultDetail> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(AppraiseSceneResultDetail::getSceneResultId, sceneResultId);
        return appraiseSceneResultDetailDAO.selectList(wrapper);
    }
}